package com.example.building_material_mannager.service.impl;

import com.example.building_material_mannager.entity.Capaccount;
import com.example.building_material_mannager.mapper.CapaccountMapper;
import com.example.building_material_mannager.service.CapaccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CapaccountServiceImpl implements CapaccountService {
    @Resource
    CapaccountMapper capaccountMapper;
    @Override
    public List<Capaccount> showCapaccount(Capaccount capaccount) {
        List<Capaccount> capaccounts=capaccountMapper.showCapaccount(capaccount);
        return  capaccounts;
    }

    @Override
    public boolean addCapaccount(Capaccount capaccount) {
        boolean re=capaccountMapper.addCapaccount(capaccount);
        return re;
    }

    @Override
    public boolean delCapaccount(Integer caid) {
        boolean re=capaccountMapper.delCapaccount(caid);
        return re;
    }

    @Override
    public boolean upCapaccount(Capaccount capaccount) {
        boolean re=capaccountMapper.upCapaccount(capaccount);
        return re;
    }
}
